package com.bt7274.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * <p>
 * BT币规则表：记录BT币获取的条件
 * </p>
 *
 * @author hp
 * @since 2025-03-25
 */
@TableName("bt_rule")
public class BtRule implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    /**
     * 规则名称
     */
    private String ruleName;

    /**
     * 计算公式
     */
    private String formula;

    /**
     * 是否生效
     */
    private Integer isActive;

    /**
     * 优先级
     */
    private Integer priority;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getRuleName() {
        return ruleName;
    }

    public void setRuleName(String ruleName) {
        this.ruleName = ruleName;
    }

    public String getFormula() {
        return formula;
    }

    public void setFormula(String formula) {
        this.formula = formula;
    }

    public Integer getIsActive() {
        return isActive;
    }

    public void setIsActive(Integer isActive) {
        this.isActive = isActive;
    }

    public Integer getPriority() {
        return priority;
    }

    public void setPriority(Integer priority) {
        this.priority = priority;
    }

    @Override
    public String toString() {
        return "BtRule{" +
        "id = " + id +
        ", ruleName = " + ruleName +
        ", formula = " + formula +
        ", isActive = " + isActive +
        ", priority = " + priority +
        "}";
    }
}
